package com.codepoem.designpattern.abstractfactory

import com.codepoem.designpattern.abstractfactory.benz.BenzCar
import com.codepoem.designpattern.abstractfactory.benz.BenzSportCar
import com.codepoem.designpattern.abstractfactory.bmw.BmwCar
import com.codepoem.designpattern.abstractfactory.bmw.BmwSportCar

/**
 * 具体工厂类 跑车驾驶员
 */
class SportDriver():Driver() {

    override fun createBmwCar(): BmwCar {
        return BmwSportCar()
    }

    override fun createBenzCar(): BenzCar {
        return BenzSportCar()
    }
}